Atelierul Sketcher Workbench este utilizat pentru a crea forme geometrice 2D cu intenția de a le utiliza în Atelierul PartDesign Workbench, Arch Workbench, și alte ateliere. În general, o geometrie 2D este considerată punctul de plecare pentru majoritatea modelelor CAD, deoarece o schiță 2D poate fi "extrudată" pentru a crea o formă 3D; mai mult, schițele 2D pot fi folosite pentru a crea alte caracteristici cum ar fi cavități, creste sau extrudări peste formele 3D construite anterior. Împreună cu operațiile booleene pe solide definite în Part Workbench, Sketcher-ul formează nucleul de design generativ al formei solide.
Together with boolean operations defined in the Part Workbench, the Sketcher Workbench, or "The Sketcher" for short, forms the basis of the constructive solid geometry (CSG) method of building solids. Together with PartDesign Workbench operations, it also forms the basis of the feature editing methodology of creating solids. But many other workbenches use sketches as well.
Atelierul de lucru Sketcher pune pe primul loc ”constrângerile” - permițând definirea formelor 2D după criterii geometrice precise. Un solver matematic de constrângeri calculează nivelul constrângerii și permite explorarea interactivă a gradelor de libertate.
La ce nu este bun Sketcher-ul
Instrumentul Sketcher nu este destinat pentru realizarea planurilor 2D. Odată ce schițele sunt folosite pentru a genera o caracteristică solidă, ele sunt ascunse automat. Constrângerile sunt vizibile numai în modul Editare schiță.
A fully constrained sketch
Constraints
Ce sunt constrângerile?
În loc de dimensiuni, constrângerile sunt folosite pentru a limita gradul de libertate al unui obiect. De exemplu, o linie fără constrângeri are 4 Degrees of Freedom (abreviat ca "DOF"): poate fi mișcat orizontal sau vertical, poate fi întinsă și poate fi rotită.
Aplicarea unei constrângeri orizontale sau verticale sau a unei constrângeri de unghi (relativ la o altă linie sau la una dintre axe) va limita capacitatea sa de a se roti, lăsându-l astfel cu 3 grade de libertate. Blocarea unuia dintre punctele sale în raport cu originea va elimina încă 2 grade de libertate. Și aplicarea unei constrângeri de dimensiune va elimina ultimul grad de libertate. Linia este apoi considerată complet constrânsă .
Obiectele multiple pot fi constrânse între ele. Două linii pot fi unite prin unul dintre punctele lor cu constrângerea punctului coincident. Un unghi poate fi setat între ele sau poate fi setat perpendicular. O linie poate fi tangentă la un arc sau un cerc și așa mai departe. O schiță complexă, cu obiecte multiple, va avea o serie de soluții diferite, ceea ce înseamnă că "una dintre aceste soluții posibile a fost atinsă pe baza constrângerilor aplicate.
Există două tipuri de constrângeri: geometrice și dimensionale. Acestea sunt detaliate în secțiunea 'Instrumentele' de mai jos.
Edit constraints
When a driving dimensional constraint is created, and if the Ask for value after creating a dimensional constraintpreference is selected (default), a dialog opens to edit its value.
You can enter a numerical value or an expression, and it is possible to name the constraint to facilitate its use in other expressions. You can also check the Reference checkbox to switch the constrain to reference mode.
To edit the value of an existing dimensional constraint do one of the following:
Right-click the constraint in the Sketcher Dialog and select the Change value option from the context menu.
Reposition constraints
Dimensional constraints can be repositioned in the 3D view by dragging. Hold down the left mouse button over the constraint value and move the mouse. The symbols of geometric constraints are positioned automatically and cannot be moved.
Profile sketches
To create a sketch that can be used as a profile for generating solids certain rules must be followed:
The sketch must contain only closed contours. Gaps between endpoints, however small, are not allowed.
Contours can be nested, to create voids, but should not self-intersect or intersect other contours.
Contours cannot share edges with other contours. Duplicate edges must be avoided.
T-connections, that is more than two edges sharing a common point, or a point touching an edge, are not allowed.
These rules do not apply to construction geometry (default color blue), which is not shown outside edit mode, or if the sketch is used for a different purpose. Depending on the workbench and the tool that will use the profile sketch, additional restrictions may apply.
Drawing aids
The Sketcher Workbench has several drawing aids and other features that can help when creating geometry and applying constraints.
Continue modes
There are two continue modes: Geometry creation "Continue Mode" and Constraint creation "Continue Mode". If these are checked (default) in the preferences, related tools will restart after finishing. To exit a continuous tool press Esc or the right mouse button. This must be repeated if a continuous geometry tool has already received input. You can also exit a continuous tool by starting another geometry or constraint creation tool. Note that pressing Esc if no tool is active will exit sketch edit mode. Uncheck the Esc can leave sketch edit modepreference if you often inadvertently press Esc too many times.
Auto constraints
In sketches that have Auto constraints checked (default) several constraints are applied automatically. The icon of a proposed automatic constraint is shown next to the cursor when it is placed correctly. Left-clicking will then apply that constraint. This is a per-sketch setting that can be changed in the Sketcher Dialog or by changing the VizualizareAutoconstraintsproperty of the sketch.
The following constraints are applied automatically:
It is possible to snap to grid lines and grid intersection, to edges of geometry and midpoints of lines and arcs, and to certain angles. Please note that snapping does not produce constraints in and of itself. For example, only if Auto constraints is switched on will snapping to an edge produce a Point on object constraint. But just picking a point on the edge would then have the same result.
Depending on the selected option in the preferences only the dimensional On-View-Parameters or both the dimensional and the positional On-View-Parameters can be enabled. Positional parameters allow the input of exact coordinates, for example the center of a circle, or the start point of a line. Dimensional parameters allow the input of exact dimensions, for example the radius of a circle, or the length and angle of a line. On-View-Parameters are not available for all tools.
Determining the center point of a circle with the positional parameters enabled
Determining the radius of a circle with the dimensional parameters enabled
If values are entered and confirmed by pressing Enter or Tab, related constraints are added automatically. If two parameters are displayed at the same time, for example the X and Y coordinate of a point, it is possible to enter one value and pick a point to define the other. Depending on the object additional constraints may be required to fully constrain it. Constraints resulting from On-View-Parameters take precedence over those that may result from Auto constraints.
Arc created by entering all On-View-Parameters with resulting automatically created constraints
Coordinate display
If the Show coordinates beside cursor while editingpreference is checked (default), the parameters of the current geometry tool (coordinates, radius, or length and angle) are displayed next to the cursor. This is deactivated while On-View-Parameters are shown.
Selection methods
While a sketch is in edit mode the following selection methods can be used:
3D view element selection
As elsewhere in FreeCAD, an element can be selected in the 3D view with a single left mouse click. But there is no need to hold down the Ctrl key when selecting multiple elements. Holding down that key is possible though and has the advantage that you can miss-click without losing the selection. Edges, points and constraints can be selected in this manner.
Double-clicking an edge in the 3D view will select all edges directly and indirectly connected with that edge via endpoints. There is no need for the edges to be connected with Coincident constraints, endpoints need only have the same coordinates.
Sketcher Dialog selection
Edges and points can also be selected from the Elements section of the Sketcher Dialog, and constraints from the Constraints section of that dialog.
The standard keyboard shortcuts, Ctrl+C, Ctrl+X and Ctrl+V, can be used to copy, cut and paste selected Sketcher geometry including related constraints. But these tools are also available from the Sketch → Sketcher tools menu. They can be used within the same sketch but also between different sketches or separate instances of FreeCAD. Since the data is copied to the clipboard in the form of Python code, it can be used in other ways too (e.g. shared on the forum).
Tools
Instrumentele
Instrumentele Sketcher Workbench sunt toate localizate în meniul Sketch care apare atunci când încărcați Sketcher Workbench.
Some tools are also available from the 3D view context menu while a sketch is in edit mode, or from the context menus of the Sketcher Dialog.
introduced in 0.21: If a sketch is in edit mode the Structure toolbar is hidden as none of its tools can then be used.
General
Sketcher toolbar
New sketch:Creează o nouă schiță pe o fațetă sau pe un plan selectat. Dacă nu este selectată nici o fațetă în timp ce acest instrument este executat, utilizatorul este chemat să selecteze un plan dintr-o fereastră pop-up.
Polyline (multiple-point line): Creează o linie formată din mai multe segmente de linie. Apăsând tasta M în timp ce desenați o polilinie comută între diferite moduri de polilinie.
Line by 2 point: Desenează un segment de linie definit prin 2 puncte. Liniile sunt infinite în ceea ce privește anumite constrângeri.
Create arc:
Arc: Desenează un segemnt de cerc definit prin centru, radius, unghiul de stat și cel de capăt.
Arc by 3 Point: Desenează un segment de arc de cerc din două puncte de capăt și un alt punct de pe circumferință.
Circle: Desenează un cerc definit prin centru și rază.
Circle by 3 Point: Desenează un cerc definit prin trei puncte pe circumferință.
Ellipse by center: Creates an ellipse by its center, an endpoint of one of its axes, and a point along the ellipse. introduced in 1.0: Or by both endpoints of one of its axes and a point along the ellipse.
Construction Mode: Comută elementele geometrice ale schiței de la / la modul de Construcție. Forma geometrică este afișată în albastru și nu este luată în considerare în afara modului de editare a schiței.
Constrângeri Sketcher
Constrângerile sunt folosite pentru a defini lungimile, a stabili reguli între elementele de schiță și pentru a bloca schița de-a lungul axelor verticale și orizontale. Unele constrângeri necesită utilizarea Helper constraints.
Dimensional constraints:
Dimension: Is the context-sensitive constraint tool of the Sketcher Workbench. Based on the current selection, it offers appropriate dimensional constraints, but also geometric constraints. introduced in 1.0
Definește distanța unei linii selectate prin limitarea lungimii acesteia sau definește distanța dintre două puncte prin limitarea distanței dintre ele.
Auto radius/diameter: Fixes the radius of arcs and B-spline weight circles, and the diameter of circles.
Angle: Fixes the angle between two edges, the angle of a line with the horizontal axis of the sketch, or the aperture angle of a circular arc.
Lock: Restricționează elementul selectat prin stabilirea distanțelor orizontale și orizontale față de origine, blocând astfel locația acelui element. Aceste distanțe de constrângere pot fi editate mai târziu.
Constrânge liniile selectate sau elementele de polilinie la o orientare orizontală reală. Pot fi selectate mai multe obiecte înainte de aplicarea acestei constrângeri.
Vertical: Constrâne liniile selectate sau elementele poliliniei la o orientare verticală. Se poate aplică la mai mult de un obiect.
Parallel: Constrânge două sau mai multe linii a fi paralele înte ele.
Perpendicular: Constrânge două linii a fi perpendiculare una pe ceallată, sau consrînge o linie a fi perpendiculară pe un capăt de arc de cerc.
Tangent: Creează o constrângere de tangență în două entități selectate ates, sau o constrânere de coliniaritaea între două segmente de linie. Un segment de linie nu trebuie să stea direct pe un arc sau un cerc pentru a fi constrâns tangent la acel arc sau cerc.
Equal Length: Constrânge două entități selectate a fi egale una cu celălaltă. Dacă sunt utilizate pe cercuri sau arce de cerc, raza lor va fi egală.
Symmetric:Constrânge două puncte a fi simetrice față de o linie sau constrânge primele două puncte selectate a fi simetrice în raport cu un al treilea punct selectat.
Practic permite blocarea unui element geometric în loc cu o singură constrângere. Ar trebui să fie deosebit de util să lucrați cu acest la curbele B-Splines. A se vedea Block Constraint forum topic. introduced in 0.17
Snell's Law: Constrânge două linii pentru a se supune unei legi de refracție pentru a simula lumina care traversează o interfață. introduced in 0.15
Fillet: Face o racordare între două linii îmbinate într-un punct. Selectați ambele linii sau faceți clic pe punctul de intersecție, apoi activați instrumentul.
Chamfer: creates a chamfer between two non-parallel edges. This is the same tool as Fillet but with a different initial mode. introduced in 1.0
Edit edge:
Trimming: Ajustează o linie, un cerc sau un arc în raport cu amplasarea unui punct dat(poziția mouse-ului).
Split: Splits an edge while transferring most constraints.
Extend: Extinde o linie sau un arc de cerc până la o limită definită printr-un arc de cerc, elipsă, arc de elipsă sau un punct în spațiu. introduced in 0.17
External Geometry: Creează o margine legată de geometria exterioară.
Preferences...: Preferințe disponibile în Sketcher Tools.
Best practices
Cele mai bune practici
Fiecare utilizator CAD își dezvoltă în timp propriul mod de a lucra, dar există câteva principii generale utile care trebuie urmate.
O serie de schițe simple sunt mai ușor de gestionat decât una complexă. De exemplu, o primă schiță poate fi creată pentru funcționalitate 3D de bază (fie un pad, fie o rotire), în timp ce a doua poate conține găuri sau decupări (buzunare). Unele detalii pot fi lăsate, pentru a fi realizate ulterior ca elemente 3D. Puteți alege să evitați filamentele din schiță dacă există prea multe și adăugați-le ca o funcționalitate 3D.
Creați întotdeauna un profil închis, sau schița dvs. nu va produce un solid, ci mai degrabă un set de fețe deschise. Dacă nu doriți ca unele obiecte să fie incluse în creația solidă, transformați-le în elementele de construcție cu instrumentul Mod de construcție.
Utilizați caracteristica de constrângeri automate pentru a limita numărul de constrângeri pe care trebuie să le adăugați manual.
Ca regulă generală, aplicați mai întâi constrângeri geometrice, apoi constrângeri dimensionale și blocați ultima schiță. Dar amintiți-vă: regulile sunt făcute pentru a fi încălcate. Dacă întâmpinați dificultăți în manipularea schiței dvs., poate fi util să restrângeți mai întâi câteva obiecte înainte de a vă completa profilul.
Dacă este posibil, centrați schița la origine (0,0) cu constrângerea de blocare. Dacă schița dvs. nu este simetrică, localizați unul dintre punctele sale la origine sau alegeți numere rotunde frumoase pentru distanțele de blocare. În v0.12, constrângerile externe (constrângerea schiței față de geometria 3D existentă ca marginile sau alte schite) nu sunt implementate. Aceasta înseamnă că pentru a localiza geometria schițelor care urmează în prima schiță, va trebui să setați manual distanțele față de prima schiță. O constrângere de blocare a (25,75) de origine este mai ușor de reținut decât (23,47,73.02).
Dacă aveți posibilitatea de a alege între constrângerile de lungime și constrângerile orizontale sau verticale, preferați ultima. Constrângerile orizontale și verticale sunt mai puțin costisitoare ca timp computațional.
În general, cele mai bune constrângeri de utilizat sunt: Constrângerile orizontale și verticale; Restricții de lungime orizontală și verticală; Point-to-Point Tangency. Dacă este posibil, limitați utilizarea acestora: restricția generală a lungimii; Tangența de la muchie la muchie; Fix Point pe o linie Constrângere; Constrângerea simetrice.
Tutoriale
Sketcher Lecture by chrisb. This is a more than 80 page PDF document that serves as a detailed manual for the Sketcher. It explains the basics of Sketcher usage, and goes into a lot of detail about the creation of geometrical shapes, and each of the constraints.